import {createRouter,createWebHashHistory} from "vue-router"
import "./generatorRoutes"
// import dynamicRoutes from "./dynamicRoutes"
let routes = [
    {
        name:"login",
        meta:{
            name:"登录"
        },
        path:"/login",
        component:()=>import(/*webpackChunkName:"login"*/"../pages/login/index.vue")
    },
    // ...dynamicRoutes
]


const router = createRouter({
    history:createWebHashHistory("/base"),
    routes
})

// 导出路由
export default router